Test: This course is a lot of fun. This course is a lot of fun. This course is a lot of fun. This course is a lot of fun.
Click me, and I will disappear.
<style> #blanket { ???: ???; /* initially hidden */ position: ???; top:???; left:???; /* full area */ width:???; height: ???; /* full area; you may use %, or vw and vh */ background-color:SlateGray; opacity: 0.5; /* make the underlying elements visible */ z-index: 9000; /* over all elements except the signin-box */ } #signin-box { ???: ???; /* initially hidden */ width: 400px; border: 1px solid Blue; background-color:White; position: ???; top: 100px; left: calc(50% - 200px); ???: 9001; /* over all elements */ } </style> <div style='border:1px solid Black; width:500px; height:400px; position:???'> <button id='menu-signin'>Sign In</button> <div id='blanket'></div> <div id='signin-box' class='modal-window'> <h2 style='text-align:center'>Sign In</h2> <br> <form ...> ... </form> </div> </div> <script> ????(???, show_signin_box); // When the SignIn button is clicked ????(???, hide_signin_box); // When the mouse is clicked on the blanket ??? show_signin_box() { ????('blanket').???? = ???; // need to show ????('signin-box').???? = ???; // need to show } ??? hide_signin_box() { ???? // need to hide them all, including the blanket } </script>